package com.team5101.service.impl;

import com.team5101.dao.IOrderDao;
import com.team5101.dao.IUserDao;
import com.team5101.entity.Order;
import com.team5101.entity.User;
import com.team5101.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
 @Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserDao iUserDao;
    @Autowired
    private IOrderDao iOrderDao;

    public List<User> userList() {

        return iUserDao.userList();
    }

     public int userDelete(String uTelephone) {

        return iUserDao.userDelete(uTelephone);
     }

     public List<User> userQuery(String uTelephone) {
        return iUserDao.userQuery(uTelephone);
     }

     public List<Order> userOrder(String orderPhone) {

         return iOrderDao.userOrder(orderPhone);
     }


 }
